home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
101-125
/
scopedisk122
/
bassub
/
about.sub
< prev
next >
Wrap
Text File
|
1995-03-19
|
910b
|
31 lines
REM About
'Displays a requestor box with 6 lines of text
'usable for displaying a message about the program
'x%, y% are the x and y line positions (not pixels)
's1$ through s6$ are the message text
'
SUB About(x%,y%,s1$,s2$,s3$,s4$,s5$,s6$)
s1$=SPACE$(31-LEN(s1$))+s1$
s2$=SPACE$(31-LEN(s2$))+s2$
s3$=SPACE$(31-LEN(s3$))+s3$
s4$=SPACE$(31-LEN(s4$))+s4$
s5$=SPACE$(31-LEN(s5$))+s5$
s6$=SPACE$(31-LEN(s6$))+s6$
height%=PEEKW(WINDOW(8)+58)
winwidth%=LEN(s1$)*(8-2*(height%=9))+40
LINE (x%*8-16,y%*8-12)-(winwidth%+x%*8,60+y%*8),3,b
LINE (x%*8-18,y%*8-13)-(winwidth%+x%*8+3,61+y%*8),2,b
LOCATE y%,x% : PRINT " ";s1$
LOCATE y%+1,x% : PRINT " ";s2$
LOCATE y%+2,x% : PRINT " ";s3$
LOCATE y%+3,x% : PRINT " ";s4$
LOCATE y%+4,x% : PRINT " ";s5$
LOCATE y%+5,x% : PRINT " ";s6$
LOCATE y%+7,x%+LEN(s1$)/2 : PRINT " ";
CALL SmallTxBox("Ok")
CALL WaitBox(which%)
CALL FlashRelease(which%)
CLS
END SUB